package org.fast.test.service.impl;

import org.fast.framework.annotation.Service;
import org.fast.framework.helper.DatabaseHelper;
import org.fast.test.entity.User;
import org.fast.test.service.UserService;

/**
 * Created by Hone on 2016/12/10.
 */
@Service
public class UserServiceImpl implements UserService {

    @Override
    public User findUserById(int id) {
        String sql = "select * from t_user where id = ?";
        return DatabaseHelper.queryEntity(User.class, sql, id);
    }
}
